package com.exam.common.entity;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;

/**
 * @ClassName : PageRequest
 * @Description : 分页返回结果
 * @Author : WHB
 */
@Data
@AllArgsConstructor
public class PageRequest<T> {

    private Long total; // 总条数
    private Long totalPage;//总页数
    private List<T> items; // 当前页数据

    public PageRequest(Long total, List<T> items) {
        this.total = total;
        this.items = items;
    }
}
